package com.yq.design.visitor;

/**
 * @ClassName Succ
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/23 17:14
 * @Version 1.0
 */
public class Succ implements Visitor {
    @Override
    public void getManResult(Man man) {
        System.out.println("man ok");
    }

    @Override
    public void getWomanResult(Woman woman) {
        System.out.println("woman ok");
    }
}
